<div id="belly" class="ilike">
    <h1><?=$data->TITLE?></h1>
    <h2 class="desc"><?=$data->DESCRIPTION?></h2>
    <? if($data->ilike->peopleWhoLikeMe) foreach ($data->ilike->peopleWhoLikeMe as $p):?>
        <div id="R<?=$p->ID?>" class="request">
            <? include 'apps/profile/template/mini.html'; ?>
            <span class="userName"><?=$p->fullname?></span><br />
            <?/*<a href="javascript:block(<?=$p->ID?>);" title="<?=_('Block this member.')?>"><?=_('Block')?></a> */?>
            <div class="links">
            <a class="mini" href="javascript:nothanks(<?=$p->ID?>);" title="<?=_('Ignore this `like`')?>"><?=_('No thanks!')?></a>
            <a class="mini" href="javascript:likeback(<?=$p->ID?>);" title="<?=_('Accept this `like`')?>"><?=_('Like back!')?></a>
            </div>
            <div class="clear"></div>
        </div>
    <?endforeach;?>
<div class="clear"></div>
</div>
<div id="flank">
    <? @include 'apps/advertisement/template/_item.html'; ?>
</div>
<script type="text/javascript">
function likeback(ID){
	tool.post({'url':'/json/ilike/likeback',
		'data':'accountID='+ID,
		'onComplete':function(e){			
			if(e.code==200){ $('R'+ID).destroy(); }
			else return tool.result('<?=_('Alert')?>','<?=_('Please try again later..')?>',400);
		}
	});
}
function nothanks(ID){
	tool.post({'url':'/json/ilike/nothanks',
		'data':'accountID='+ID,
		'onComplete':function(e){
			if(e.code==200)	$('R'+ID).destroy();
			else return tool.result('<?=_('Alert')?>','<?=_('Please try again later..')?>',400);
		}
	});
}
</script>